package com.wlyy.bcwlw.sys.user.entity;

import org.directwebremoting.annotations.DataTransferObject;

import com.rework.joss.persistence.convention.annotation.GeneratedValue;
import com.rework.joss.persistence.convention.annotation.Id;
import com.rework.joss.persistence.convention.annotation.Table;
import com.rework.joss.persistence.convention.annotation.Transient;
import com.wlyy.bcwlw.base.BaseDTO;


@DataTransferObject
@Table(name="sys_user_role")
public class UserRoleDTO extends BaseDTO{
    /** 
	* @Fields serialVersionUID : TODO
	*/ 
	@Transient
	private static final long serialVersionUID = 9206926175269419709L;

	/** 关系id */
	@GeneratedValue(generator = "UUID")
	@Id
    private String userRoleId;

    /** 用户id */
    private String userId;

    /** 角色id */
    private String roleId;

    /**
     * 获取关系id
     *
     * @return user_role_id - 关系id
     */
    public String getUserRoleId() {
        return userRoleId;
    }

    /**
     * 设置关系id
     *
     * @param userRoleId 关系id
     */
    public void setUserRoleId(String userRoleId) {
        this.userRoleId = userRoleId;
    }

    /**
     * 获取用户id
     *
     * @return user_id - 用户id
     */
    public String getUserId() {
        return userId;
    }

    /**
     * 设置用户id
     *
     * @param userId 用户id
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 获取角色id
     *
     * @return role_id - 角色id
     */
    public String getRoleId() {
        return roleId;
    }

    /**
     * 设置角色id
     *
     * @param roleId 角色id
     */
    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }
}